Skip to content

Add unit tests for AZ-aware struct and schema changes#480

Merged
openshift-merge-bot[bot] merged 1 commit into
openstack-k8s-operators:mainfrom
abhiramnarayana:osprh-30644-unit-tests
Jun 29, 2026
Merged

Add unit tests for AZ-aware struct and schema changes#480
openshift-merge-bot[bot] merged 1 commit into
openstack-k8s-operators:mainfrom
abhiramnarayana:osprh-30644-unit-tests

Conversation

@abhiramnarayana

Copy link
Copy Markdown
Contributor

Add tests to generate_bind9_pools_yaml_test.go verifying the data model and validation changes for AZ-aware multipool support protect against regressions. Covers view propagation to generated pool targets, template rendering of view and tsigkey_id fields (both inclusion when set and omission when empty), and AZ mode validation across all three enum states ("", "Disabled", "Enabled").

@openshift-ci

openshift-ci Bot commented Jun 18, 2026

Copy link
Copy Markdown
Contributor

Hi @abhiramnarayana. Thanks for your PR.

I'm waiting for a openstack-k8s-operators member to verify that this patch is reasonable to test. If it is, they should reply with /ok-to-test on its own line. Until that is done, I will not automatically test new commits in this PR, but the usual testing commands by org members will still work.

Tip

We noticed you've done this a few times! Consider joining the org to skip this step and gain /lgtm and other bot rights. We recommend asking approvers on your previous PRs to sponsor you.

Once the patch is verified, the new status will be reflected by the ok-to-test label.

I understand the commands that are listed here.

Details

Instructions for interacting with me using PR comments are available here. If you have questions or suggestions related to my behavior, please file an issue against the kubernetes-sigs/prow repository.

@omersch381

Copy link
Copy Markdown
Contributor

/ok-to-test

@abhiramnarayana abhiramnarayana force-pushed the osprh-30644-unit-tests branch 2 times, most recently from f9a4ec7 to fe1b78f Compare June 18, 2026 12:24

@omersch381 omersch381 left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I left a comment regarding one of the tests name, but except for that, it LGTM

}
}

func TestGenerateMultiplePoolsWithViewAndTSIG(t *testing.T) {

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This test does not include tsig keys.

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Done.

@abhiramnarayana abhiramnarayana force-pushed the osprh-30644-unit-tests branch from fe1b78f to 705354d Compare June 29, 2026 12:29
@abhiramnarayana

Copy link
Copy Markdown
Contributor Author

recheck

Add tests to generate_bind9_pools_yaml_test.go verifying the data
model and validation changes for AZ-aware multipool support protect
against regressions. Covers view propagation to generated pool targets,
template rendering of view and tsigkey_id fields (both inclusion
when set and omission when empty), and AZ mode validation across
all three enum states ("", "Disabled", "Enabled").

Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
Signed-off-by: Abhiram R N <abhiramrn@gmail.com>
@abhiramnarayana abhiramnarayana force-pushed the osprh-30644-unit-tests branch from 705354d to 1bb46d0 Compare June 29, 2026 14:19

@omersch381 omersch381 left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM

@openshift-ci

openshift-ci Bot commented Jun 29, 2026

Copy link
Copy Markdown
Contributor

[APPROVALNOTIFIER] This PR is APPROVED

This pull-request has been approved by: abhiramnarayana, omersch381

The full list of commands accepted by this bot can be found here.

The pull request process is described here

Details Needs approval from an approver in each of these files:

Approvers can indicate their approval by writing /approve in a comment
Approvers can cancel approval by writing /approve cancel in a comment

@openshift-merge-bot openshift-merge-bot Bot merged commit ee6be66 into openstack-k8s-operators:main Jun 29, 2026
5 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants